package com.leo.blog.dto;

import java.util.List;

import com.leo.blog.entity.BlogType;
import com.leo.blog.enums.BlogTypeStateEnum;

public class BlogTypeExecution {
		//结果状态
		private int state;
		//状态标识
		private String stateInfo;
		//博客类型数量
		private int count;
		//操作(增删改的时候使用)
		private BlogType blogType;
		//shopType列表(查询列表的时候使用)
		private List<BlogType> blogTypeList;
			
		//构造函数
		public BlogTypeExecution() {
				
		}
			
		//操作失败的时候使用的构造器
		public BlogTypeExecution(BlogTypeStateEnum stateEnum) {
			this.state = stateEnum.getState();
			this.stateInfo = stateEnum.getStateInfo();
		}
			
		//操作成功的时候使用的构造器
		public BlogTypeExecution(BlogTypeStateEnum stateEnum, BlogType blogType) {
			this.state = stateEnum.getState();
			this.stateInfo = stateEnum.getStateInfo();
			this.blogType = blogType;
		}
			
		//操作成功的时候使用的构造器
		public BlogTypeExecution(BlogTypeStateEnum stateEnum, List<BlogType> blogTypeList) {
			this.state = stateEnum.getState();
			this.stateInfo = stateEnum.getStateInfo();
			this.blogTypeList = blogTypeList;
		}

		public int getState() {
			return state;
		}

		public void setState(int state) {
			this.state = state;
		}

		public String getStateInfo() {
			return stateInfo;
		}

		public void setStateInfo(String stateInfo) {
			this.stateInfo = stateInfo;
		}

		public int getCount() {
			return count;
		}

		public void setCount(int count) {
			this.count = count;
		}

		public BlogType getBlogType() {
			return blogType;
		}

		public void setBlogType(BlogType blogType) {
			this.blogType = blogType;
		}

		public List<BlogType> getBlogTypeList() {
			return blogTypeList;
		}

		public void setBlogTypeList(List<BlogType> blogTypeList) {
			this.blogTypeList = blogTypeList;
		}
		
		
}
